package com.qianxunclub.starter.web.cors;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author chihiro.zhang
 */
@Data
@Component
@ConfigurationProperties(prefix = "cors")
public class CorsProperties {


    private String[] allowedOrigins;
    private String[] allowedMethods;
    private String[] allowedHeaders;
    private String[] exposedHeaders;

    private Boolean allowCredentials;
    private String mappings;

    private Long maxAge;
}

